package com.fc.mall.kdniao.exception;

public enum KDNiaoErrorCode {
    SERVICE_ERROR(-1, "服务出错，错误信息{0}"),
    HTTP_CONNECTION_ERROR(0, "请求服务器出错, 错误信息{0}"),
    HTTP_RESPONSE_STATUS_ERROR(1,  "请求服务器出错，状态码{0}"),
    ;

    KDNiaoErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;
    private String msg;

    public int getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
